let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start");
                var _n17,
                    i =
                    (this && this.__extends) ||
                    ((_n17 = function n(t, e) {
                            return (_n17 =
                                Object.setPrototypeOf ||
                                ({
                                        __proto__: []
                                    }
                                    instanceof Array &&
                                    function(t, e) {
                                        t.__proto__ = e;
                                    }) ||
                                function(t, e) {
                                    for (var o in e) {
                                        Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                                    }
                                })(t, e);
                        }),
                        function(t, e) {
                            function o() {
                                this.constructor = t;
                            }
                            _n17(t, e),
                                (t.prototype =
                                    null === e ?
                                    Object.create(e) :
                                    ((o.prototype = e.prototype), new o()));
                        });
                Object.defineProperty(o, '__esModule', {
                    value: !0
                });
                var r = t('MD5'),
                    a = t('Base64'),
                    s = t('DataMrg'),
                    c = t('GlobalEventMrg'),
                    l = t('App'),
                    u = (function(t) {
                        function e(e, o, n, i, r) {
                            void 0 === o && (o = 0),
                                void 0 === n && (n = ''),
                                void 0 === i && (i = 0),
                                void 0 === r && (r = '');
                            var a = t.call(this) || this;
                            return (
                                (a._isShare = !0),
                                (a._adOpen = !0),
                                (a._params = e),
                                (a._sdkType = o),
                                (a._appCode = n),
                                (a._platform = i),
                                (a._channel = r),
                                (a._uid = ''),
                                (a._uname = ''),
                                a
                            );
                        }
                        return (
                            i(e, t),
                            (e.prototype.initDefaultData = function() {
                                var t = window.location.search;
                                if (t && t.indexOf('?') >= 0) {
                                    var e = t.substr(1, t.length).split('&'),
                                        o = e.length;
                                    if (o > 0)
                                        for (var n = 0; n < o; n++) {
                                            var i = e[n],
                                                a = i.indexOf('='),
                                                s = i.substr(0, a),
                                                c = i.substr(a + 1, i.length);
                                            'uid' == s && (this._uid = decodeURIComponent(c));
                                        }
                                }
                                this._uid.length < 1 &&
                                    (this._uid = r.default.hex_md5(
                                        cc.sys.os +
                                        cc.sys.osVersion +
                                        cc.sys.browserType +
                                        cc.sys.browserVersion
                                    ));
                            }),
                            Object.defineProperty(e.prototype, 'company', {
                                get: function get() {
                                    return '著作权人：广州实多瑞网络技术有限公司';
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            Object.defineProperty(e.prototype, 'copyright', {
                                get: function get() {
                                    return '软著号：2024SA0052214';
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            Object.defineProperty(e.prototype, 'showCounsel', {
                                get: function get() {
                                    return !0;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            Object.defineProperty(e.prototype, 'shareTitle', {
                                get: function get() {
                                    return null;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            Object.defineProperty(e.prototype, 'shareImageId', {
                                get: function get() {
                                    return null;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            Object.defineProperty(e.prototype, 'shareImageUrl', {
                                get: function get() {
                                    return null;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            Object.defineProperty(e.prototype, 'adUnitId', {
                                get: function get() {
                                    return null;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            Object.defineProperty(e.prototype, 'isNewUser', {
                                get: function get() {
                                    return this._isNewUser;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            (e.prototype.login = function() {
                                this.startLogin();
                            }),
                            (e.prototype.startLogin = function() {
                                (this._isLoginSuccess = !0),
                                this.loadUserData(),
                                    c.default.emit(c.GlobalEvent.LoginSuccess);
                            }),
                            Object.defineProperty(e.prototype, 'isLoginSuccess', {
                                get: function get() {
                                    return this._isLoginSuccess;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            (e.prototype.logout = function() {
                                this._isLoginSuccess = !1;
                            }),
                            Object.defineProperty(e.prototype, 'params', {
                                get: function get() {
                                    return this._params;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            Object.defineProperty(e.prototype, 'sdkType', {
                                get: function get() {
                                    return this._sdkType;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            Object.defineProperty(e.prototype, 'appCode', {
                                get: function get() {
                                    return this._appCode;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            Object.defineProperty(e.prototype, 'platform', {
                                get: function get() {
                                    return this._platform;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            Object.defineProperty(e.prototype, 'channel', {
                                get: function get() {
                                    return this._channel;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            Object.defineProperty(e.prototype, 'uid', {
                                get: function get() {
                                    return this._uid;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            Object.defineProperty(e.prototype, 'uname', {
                                get: function get() {
                                    return this._uname;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            (e.prototype.share = function() {}),
                            (e.prototype.videoAdBuy = function(t, e, o, n) {
                                void 0 === o && (o = null),
                                    void 0 === n && (n = null),
                                    o && n && o.call(n, !0);
                            }),
                            (e.prototype.showVideoAd = function(t, e, o) {
                                void 0 === t && (t = null),
                                    void 0 === e && (e = null),
                                    void 0 === o && (o = 0),
                                    t && e && t.call(e, !0);
                            }),
                            (e.prototype.hideVideoAd = function() {}),
                            (e.prototype.postMessage = function(t) {
                                for (var e = [], o = 1; o < arguments.length; o++) {
                                    e[o - 1] = arguments[o];
                                }
                            }),
                            (e.prototype.loadUserData = function() {
                                var t = this.readUserData();
                                s.DataMrg.init(t);
                            }),
                            (e.prototype.saveUserData = function(t) {
                                // var e = a.default.encode(JSON.stringify(t));
                                var e = JSON.stringify(t);
                                cc.sys.localStorage.setItem(this.userKey(), e);
                            }),
                            (e.prototype.userKey = function() {
                                return "gameData"
                            }),
                            (e.prototype.readUserData = function() {
                                var t = cc.sys.localStorage.getItem(this.userKey());
                                return t ?
                                    // ((this._isNewUser = !1), JSON.parse(a.default.decode(t))) :
                                    ((this._isNewUser = !1), JSON.parse(t)) :
                                    ((this._isNewUser = !0), {});
                            }),
                            (e.prototype.sidebar = function() {}),
                            (e.prototype.umEvent = function() {}),
                            e
                        );
                    })(cc.EventTarget);
                (o.default = u), console.log("end");
            module.exports =  e.exports;